CREATE TABLE [dbo].[PublishingHouse_Image]
(
[PublishingHouseId] [int] NOT NULL,
[ImageId] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PublishingHouse_Image] ADD CONSTRAINT [PK_PublishingHouse_Image] PRIMARY KEY CLUSTERED  ([PublishingHouseId], [ImageId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PublishingHouse_Image] ADD CONSTRAINT [FK_PublishingHouse_Image_Image] FOREIGN KEY ([ImageId]) REFERENCES [dbo].[Image] ([Id])
GO
ALTER TABLE [dbo].[PublishingHouse_Image] ADD CONSTRAINT [FK_PublishingHouse_Image_PublishingHouse] FOREIGN KEY ([PublishingHouseId]) REFERENCES [dbo].[PublishingHouse] ([Id])
GO
